package com.molichuxing.services.business.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.business.dto.request.create.InvoiceBizCreateDto;
import com.molichuxing.services.business.dto.response.InvoiceInfoBizDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 经销商组合 服务类
 * </p>
 *
 * @author
 * @since 2019-08-12
 */
public interface InvoiceBizService extends RootService {


    /**
     * 获取发票列表
     *
     * @param map      key:status Integer 发票状态
     *                 key:orderCode Long 订单编号
     *                 key:userId Integer 用户id
     *                 key：businessType Integer 业务类型
     *                 key:startApplyTime LocalDateTime 申请开始时间
     *                 key:endApplyTime LocalDateTime 申请结束时间
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    public Paged<InvoiceInfoBizDto> getInvoiceInfoPage(Map<String, Object> map, Integer pageNum, Integer pageSize) throws Exception;

    /**
     * 添加发票
     *
     * @param invoiceBizCreateList
     * @return
     * @throws Exception
     */
    public Boolean createInvoice(List<InvoiceBizCreateDto> invoiceBizCreateList) throws Exception;


}
